// 群组api
import request from '@/utils/request'

// 获取群组列表
export const getGroupList = (data) => {
  return request({
    url: '/wzrgwdev/getGroupList',
    method: 'post',
    data,
  })
}

// 获取全部的网关列表
export const getGatewayAll = (data) => {
  return request({
    url: '/wzrgwdev/getGwAll',
    method: 'post',
    data,
  })
}

// 增加群组
export const addGroup = (data) => {
  return request({
    url: '/wzrgwdev/addgroup',
    method: 'post',
    data,
  })
}

// 增加群组设备
export const aedGroupDevice = (data) => {
  return request({
    url: '/wzrgwdev/adGroupDev',
    method: 'post',
    data,
  })
}

// 获取入网/未入网的设备列表
export const getDeviceInGw = (data) => {
  return request({
    url: '/wzrgwdev/getDeviceInGw',
    method: 'post',
    data,
  })
}
// 根据群组获取已入网的设备列表
export const getDeviceByGroup = (data) => {
  return request({
    url: '/wzrgwdev/getDeviceByGroup',
    method: 'post',
    data,
  })
}

